<!DOCTYPE HTML>
<html>

<head>
  <title>Js Hash Route</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="description">
  <link rel="stylesheet" href="./css/index.css">
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  <!-- 引入路由处理文件 -->
  <script type="text/javascript" src="./router/hashRouter.js"></script>
</head>


<body>
  <!-- 这里使用include这个库来引入外部html文件 -->
  <!--include引入，顺序很重要-->
  <script src="js/include.js"></script>
  <include src="components/nav.html"></include>

  <div id="root">
    <p style="color:#333">默认首页占位内容</p>
  </div>

  <!-- 引入路由配置文件 -->
  <script type="text/javascript" src="./router/index.js"></script>

</body>

</html>